import { type PluginManager } from "epic-designer";
import Test from "./components/Test";
// import Checkbox from "./components/checkbox";

// 安装扩展
export function setupDesignerExtensions(pluginManager: PluginManager): void {
  // 注册组件
  pluginManager.registerComponent(Test);
  // pluginManager.registerComponent(Checkbox);
  
  // 添加右侧模块
  pluginManager.registerRightSidebar({
    id: "test_view",
    title: "扩展",
    component: async () => await import("./sidebar/TestView/index.vue"),
  });

  // 添加活动栏模块
  pluginManager.registerActivitybar({
    id: 'test',
    title: '扩展',
    icon: 'icon-daima1',
    component: async () => await import("./sidebar/TestView/index.vue"),
  })

  // 添加到页面左侧组件区域
  pluginManager.addSchemaGroup({
    title: "自定义",
    list: ["test"],
  });
}
